package com.fg.cloud.manager.entry.order;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fg.cloud.common.convert.CustomBigDecimalSerialize;
import com.fg.cloud.manager.entry.BaseEntity;

/**
 * @author ：
 * @date ： 2017年6月21日 下午4:48:49
 * @Desc ：订单明细实体类
 */
public class OrderDetailEntity extends BaseEntity {

	private static final long serialVersionUID = 7401450374603566967L;

	private Long orderId;// 订单id
	
	private Long productId;// 商品ID
	
	private Long skuId; // 规格id
	
	private String productName ; //商品名称
	
	private String productNumber ; //商品编码
	
	private String productImg ;  //商品缩略图
	
	private String productSpec;// 商品信息（品名规格）
	
	private BigDecimal amount;// 数量
	
	private Long unitId;// 单位id
	
	private String unitName;// 单位名称
	
	private Long stdUnit;// 标准单位
	
	private Integer stdAmount;// 换算数量
	
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal sellPrice;// 销售价
	
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal promotionPrice;// 促销价

	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal sumMoney;// 金额
	
	private BigDecimal deliveryAmount;// 已发货数量
	
	private String remark;// 备注描述
	
	private BigDecimal basicPrice ;
	
	@JsonIgnore
	private Long cartId ; //购物车Id
	
	public Long getCartId() {
		return cartId;
	}

	public void setCartId(Long cartId) {
		this.cartId = cartId;
	}
	//商品购买精度
	private Integer precision ;

	public Integer getPrecision() {
		return precision;
	}

	public void setPrecision(Integer precision) {
		this.precision = precision;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductNumber() {
		return productNumber;
	}

	public void setProductNumber(String productNumber) {
		this.productNumber = productNumber;
	}

	public String getProductImg() {
		return productImg;
	}

	public void setProductImg(String productImg) {
		this.productImg = productImg;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Long getUnitId() {
		return unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public Long getStdUnit() {
		return stdUnit;
	}

	public void setStdUnit(Long stdUnit) {
		this.stdUnit = stdUnit;
	}

	public Integer getStdAmount() {
		return stdAmount;
	}

	public void setStdAmount(Integer stdAmount) {
		this.stdAmount = stdAmount;
	}

	public BigDecimal getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(BigDecimal sellPrice) {
		this.sellPrice = sellPrice;
	}

	public BigDecimal getPromotionPrice() {
		return promotionPrice;
	}

	public void setPromotionPrice(BigDecimal promotionPrice) {
		this.promotionPrice = promotionPrice;
	}

	public BigDecimal getSumMoney() {
		return sumMoney;
	}

	public void setSumMoney(BigDecimal sumMoney) {
		this.sumMoney = sumMoney;
	}

	public BigDecimal getDeliveryAmount() {
		return deliveryAmount;
	}

	public void setDeliveryAmount(BigDecimal deliveryAmount) {
		this.deliveryAmount = deliveryAmount;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}


	public BigDecimal getBasicPrice() {
		return basicPrice;
	}

	public void setBasicPrice(BigDecimal basicPrice) {
		this.basicPrice = basicPrice;
	}
}
